home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / science / ack3d.zip / XMSLIB.H < prev    next >
C/C++ Source or Header  |  1994-01-09  |  2KB  |  59 lines

  1. #ifndef __XMSLIB_H
  2. #define __XMSLIB_H
  3.  
  4. /* X M S L I B . h  -- Interface to XMS (2.0+) memory functions
  5.  * ---------------------------------------------------------------
  6.  *
  7.  * $Revision:   1.0  $
  8.  *     $Date:   28 Feb 1992  8:55:10  $
  9.  *      $Log:   F:/XMSLIB/VCS/XMSLIB.H_V  $
  10.  * 
  11.  *    Rev 1.0   28 Feb 1992  8:55:10
  12.  * Initial revision.
  13.  * 
  14.  * ---------------------------------------------------------------
  15.  */
  16.  
  17. /* ------------------------  Pragmas -------------------------- */
  18.  
  19. /* ---------------- Include files (interface) ----------------- */
  20. #include "xtypes.h" // for WORD and DWORD
  21.  
  22. /* ----------------------- Definitions ------------------------ */
  23. typedef DWORD    XMSHANDLE;       // Handle to XMS memory
  24. #define XMSHNULL ((XMSHANDLE)0)   // `NULL' handle
  25.  
  26. #define XMSDUMP_CTRL  1           // Bit flag: dump XMS control blocks
  27. #define XMSDUMP_DATA  2           // Bit flag: dump XMS data
  28. #define XMSDUMP_ALL   (XMSDUMP_CTRL|XMSDUMP_DATA)
  29.  
  30. /* ------------------- Function prototypes -------------------- */
  31.  
  32. #if defined ( __cplusplus )
  33.   extern "C" {                    // Turn off C++ name mangling
  34. #endif
  35.  
  36. XMSHANDLE XMSalloc      (WORD uBytes);
  37. int       XMSclose      (void);
  38. void      XMSdump       (WORD uDumpFlags);
  39. WORD      XMSerrorCode  (void);
  40. int       XMSfree       (XMSHANDLE xhXM);
  41. int       XMSget        (void * pDest, XMSHANDLE xhXM);
  42. int       XMSgetExt     (void * pDest, XMSHANDLE xhXM, WORD uSrcOfs,
  43.                          WORD uBytes);
  44. WORD      XMSgetLen     (XMSHANDLE xhXM);
  45. WORD      XMSgetVersion (void);
  46. int       XMSinstalled  (void);
  47. int       XMSopen       (WORD uKbytes);
  48. int       XMSput        (XMSHANDLE xhXM, const void * pSrc, WORD uBytes);
  49.  
  50. #if defined ( __cplusplus )
  51.   }
  52. #endif
  53.  
  54. /* ------------------------- Globals -------------------------- */
  55.  
  56. /* ------------------------------------------------------------ */
  57.  
  58. #endif  // __XMSLIB_H
  59.